package stardust.product.platform.webc;


import stardust.product.platform.webc.annotation.Parameter;


public interface WebcParameterConvert
{

  public static final WebcParameterConvert EMPTY = new WebcParameterConvert()
  {

    public Object[] convert(WebcRequestHandler requestHandler, WebcResourceReference reference, Parameter parameter, Class<?> targetType, boolean isArray)
    {
      throw new IllegalArgumentException("无法调用默认的自定义参数转换器。");
    }

  };
  
  Object[] convert(WebcRequestHandler requestHandler, WebcResourceReference reference, Parameter parameter, Class<?> targetType, boolean isArray);
  
}
